<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@  taglib  uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'listResource.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link rel="stylesheet" type="text/css"
			href="./styles/control_panel.css" />
		<link rel="stylesheet" type="text/css" href="./styles/sysTable.css" />
		<script src="./javaScripts/jquery-1.5.1.min.js" type="text/javascript">
</script>
		<script type="text/javascript" src="./javaScripts/sysTable.js">
</script>

	</head>

	<body>
		<div style="margin-bottom: 4px; margin-left: 12px;">

	<pg:pager url="bbs/log/log_listLog"  maxIndexPages="10"  maxPageItems="5"   scope="request" export="currentPageNumber=pageNumber">
			<div
				style="border: 1px solid #cccccc; height: auto !important; height: 100px; min-height: 100px;">
				<div class="control_con_right_0021">
					<table width="100%" cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td align="left" class="tb_left" valign="middle" colspan="3"
								style="padding-left: 10px;">
								工作日志列表
							</td>

						</tr>

					</table>
				</div>
				<div class="control_con_right_0022">
					<div class="control_con_right_00221">
						<table border="0" cellpadding="0" cellspacing="0" width="100%"
							align="center" style="color: #1E5B77;" class="tb_msg">
							<tr>
								<td align="center" width="30%">
									操作内容
								</td>
								<td align="center" width="8%">
									操作人
								</td>
								<td align="center" width="10%">
									操作时间
								</td>
								<td align="center" width="37%">
									状态
								</td>
								<td align="center" width="15%">
									操作
								</td>
							</tr>
						</table>
					</div>
					<s:if test="logList!=null && logList.size>0">
						<div>
							<table border="0" cellpadding="0" cellspacing="0" width="100%"
								align="center" id="tb_msg_">
								<s:iterator value="logList" status="li" var="log2">
									<pg:item>
									<tr>
										<td width="30%" align="center">
											<s:property value="operation" />
										</td>
										<td width="8%" align="center">
											<s:property value="operationer" />
										</td>
										<td width="10%" align="center">
											<s:date name="opTime" format="yyyy-MM-dd HH:mm:ss" />
										</td>
										<td width="37%" align="center">
											<s:if test="logFlag==0"><font color="green">新</font> </s:if>
											<s:if test="logFlag==1"><font color="red">已恢复</font> </s:if>
											<s:if test="logFlag==3"><font color="black">旧</font> </s:if>
										</td>
										<td width="15%" align="center">
											&nbsp;
											<s:url var="showLog" action="log_showLog.action">
												<s:param name="logId" value="#log2.id"></s:param>
											</s:url>
											<a href="${showLog}">查看</a>
										</td>
									</tr>
									</pg:item>
								</s:iterator>

							</table>


						</div>
					</s:if>
					<s:else>
						<div
							style="text-align: left; padding-left: 20px; padding-top: 4px;">
							尚未有任何操作，列表为空！
						</div>
					</s:else>
				</div>
			</div>
			<!-- 分页控件 -->
           <div style="text-align: right;" id="page_con">
              			 
					    	<pg:prev>
							<a href="${pageUrl}" ><div  class="page_" id="pag_prev" >Prev</div></a> 
						  </pg:prev>
						 <pg:pages>
							 
								<s:if test="#request.currentPageNumber == #request.pageNumber}">
									<font color="red">${pageNumber}</font>
								</s:if>
								<s:else>
									<a href="${pageUrl}"><div  class="page_">${pageNumber}</div></a>
								</s:else>
							 
						</pg:pages>
						<pg:next>
							<a href="${pageUrl}"><div  class="page_" id="pag_next">Next</div></a>
						</pg:next>
 
           </div>
		 
		 
		 </pg:pager>
		</div>
	</body>
</html>
